/*************************************************************************
	> File Name: linklist.h
	> Author: YanHaiChao
	> Mail: 983628315@qq.com
	> Created Time: Fri 22 Jan 2021 05:13:37 PM CST
 ************************************************************************/

#ifndef _LINKLIST_H
#define _LINKLIST_H

#define offset(T, name) (long long)(&(((T *)(NULL)) -> name))
#define Head(p, T, name) (T *)((char *)(p) - offset(T, name))

struct Link_node {
    struct Link_node *next;
};

#endif 
